#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2021 wanghch <wanghch@wanghch-pc>
#
# Distributed under terms of the MIT license.

"""

"""
# jqdatasdk for local use
from jqdatasdk import *
import os
import base64
def sdk_auth():
    with open(os.path.expanduser('~/jq-auth.txt'), 'r') as f:
        username,password = base64.b64decode(f.readline().strip()).decode('utf-8').strip().split(":")
        auth(username, password)
